// GUI constants
var POST_HEIGHT = 66;

// Container constants
var TODO = 0;
var DOING = 1;
var IMPEDED = 2;
var DONE = 3;
var PREFERENCES = 4;
var COLORS = 5;
var BURNDOWN = 6;

// Xml tag names
var XML_HEAD = '<? xml version="1.0" ?>'

// User tags
var TAG_CASTOR = "castor";
var TAG_USER = "user";
var TAG_NEXT_ID = "nextId";

// Project tags
var TAG_NAME = "name";
var TAG_PROJECT = "project";

// Container tags
var TAG_TODO = "todo";
var TAG_DOING = "doing";
var TAG_IMPEDED = "impeded";
var TAG_DONE = "done";

// Post-it tags
var TAG_POST_IT = "postIt"

var TAG_ID = "id";
var TAG_TASK = "task";
var TAG_DESCRIPTION = "description";
var TAG_STARS = "stars";
var TAG_START_DATE = "startDate";
var TAG_EXPIRATION_DATE = "expirationDate";
var TAG_FINALIZATION_DATE = "finalizationDate";

// Date tags
var TAG_DAY = "day";
var TAG_MONTH = "month";
var TAG_YEAR = "year";

function tag(tag, data){
	return "<" + tag + ">" + data + "</" + tag + ">";
}

// Layout fields
var PSTATE_EXPIRED = 0;
var PSTATE_TODAY   = 1;
var PSTATE_NEAR    = 2;
var PSTATE_TASK    = 3;

// Default layout
var DEFAULT_LAYOUT_EXPIRED = "purple";
var DEFAULT_LAYOUT_TODAY   = "red"   ;
var DEFAULT_LAYOUT_NEAR    = "orange";
var DEFAULT_LAYOUT_TASK    = "blue"  ;



